package net.yondervision.hrfsp.sdk.esign.domain.request;

import cn.hutool.http.Method;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import net.yondervision.hrfsp.sdk.esign.domain.AbstractESignRequest;
import net.yondervision.hrfsp.sdk.esign.domain.ESignRequest;
import net.yondervision.hrfsp.sdk.esign.domain.request.body.AccountsSealsPersonaltemplateParamBody;
import net.yondervision.hrfsp.sdk.esign.domain.request.path.AccountsSealsPersonaltemplateParamPath;
import net.yondervision.hrfsp.sdk.esign.domain.response.AccountsSealsPersonaltemplateResponse;

/**
 * @author Cash Zhang
 * @version v1.0
 * @since 2019/09/28 11:01
 */
@Data
@Builder
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class AccountsSealsPersonaltemplateRequest extends AbstractESignRequest implements
    ESignRequest<AccountsSealsPersonaltemplateResponse> {

  private AccountsSealsPersonaltemplateParamPath accountsSealsPersonaltemplateParamPath;

  private AccountsSealsPersonaltemplateParamBody accountsSealsPersonaltemplateParamBody;

  public AccountsSealsPersonaltemplateRequest(
      AccountsSealsPersonaltemplateParamPath accountsSealsPersonaltemplateParamPath,
      AccountsSealsPersonaltemplateParamBody accountsSealsPersonaltemplateParamBody) {
    this.accountsSealsPersonaltemplateParamPath = accountsSealsPersonaltemplateParamPath;
    this.accountsSealsPersonaltemplateParamBody = accountsSealsPersonaltemplateParamBody;
    this.setParamPath(accountsSealsPersonaltemplateParamPath);
    this.setParamBody(accountsSealsPersonaltemplateParamBody);
  }

  @Override
  public String getUrl() {
    return "/accounts/{accountId}/seals/personaltemplate";
  }

  @Override
  public Method getMethodType() {
    return Method.POST;
  }


  @Override
  public Class<AccountsSealsPersonaltemplateResponse> getResponseClass() {
    return AccountsSealsPersonaltemplateResponse.class;
  }

}
